else
error('Linker doesn\'t support --version-script or -exported_symbols_list')
endif
-if platform_win32 and cc.has_link_argument('-Wl,--no-undefined')
- babl_link_args += '-Wl,--no-undefined'
+if platform_win32
+ babl_link_args += no_undefined
endif
-
babl_version_h = configure_file(
input: 'babl-version.h.in',
output: 'babl-version.h',
# Linker arguments
babl_ext_link_args = [
]
-if platform_win32 and cc.has_link_argument('-Wl,--no-undefined')
- babl_ext_link_args += '-Wl,--no-undefined'
+if platform_win32
+ babl_ext_link_args += no_undefined
endif
add_project_arguments(common_c_flags, language: 'c')
+# Linker arguments
+if platform_win32 and cc.has_link_argument('-Wl,--no-undefined')
+ no_undefined = '-Wl,--no-undefined'
+else
+ no_undefined = []
+endif
+
+
################################################################################
# Check for compiler CPU extensions